package tedu.api.exception;

import java.io.FileNotFoundException;

public class ThrowDemo {
    public static void main(String[] args) {
        Student s = new Student();
        try {
            s.setAge(1000);
        } catch (IllegalAgeException e) {
            System.out.println(e.getMessage());
        }
        System.out.println("此人年龄为"+s.getAge()+"岁");


    }
}
